package cn.wjh.business.service;

import java.util.List;

import cn.wjh.business.domain.CompetitionSign;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 比赛报名Service接口
 *
 * @author jiraWu
 * @date 2023-10-20
 */
public interface ICompetitionSignService extends IService<CompetitionSign> {
	/**
	 * 查询比赛报名
	 *
	 * @param signId 比赛报名主键
	 * @return 比赛报名
	 */
	public CompetitionSign selectCompetitionSignBySignId(Long signId);

	/**
	 * 查询比赛报名列表
	 *
	 * @param competitionSign 比赛报名
	 * @return 比赛报名集合
	 */
	public List<CompetitionSign> selectCompetitionSignList(CompetitionSign competitionSign);

	/**
	 * 新增比赛报名
	 *
	 * @param competitionSign 比赛报名
	 * @return 结果
	 */
	public int insertCompetitionSign(CompetitionSign competitionSign);

	/**
	 * 修改比赛报名
	 *
	 * @param competitionSign 比赛报名
	 * @return 结果
	 */
	public int updateCompetitionSign(CompetitionSign competitionSign);

	/**
	 * 批量删除比赛报名
	 *
	 * @param signIds 需要删除的比赛报名主键集合
	 * @return 结果
	 */
	public int deleteCompetitionSignBySignIds(Long[] signIds);

	/**
	 * 删除比赛报名信息
	 *
	 * @param signId 比赛报名主键
	 * @return 结果
	 */
	public int deleteCompetitionSignBySignId(Long signId);

	/*获取比赛报名状态*/
	boolean isSign(Long competitionId);
}
